:root {
  --background: #ffffff;
}



.nav-toggle {
  display: none;
}

.nav-toggle-label {
  position: absolute;
  top: 15px;
  left: 0;
  margin-left: 1em;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #c08c2b;
  height: 5px;
  width: 2em;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before {
  bottom: 8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

nav {
  position: absolute;
  text-align: center;
  top: 100%;
  left: 0;
  background: var(--background);
  width: 100%;
  height: auto;
  transform: scale(1,0);
  transform-origin: top;
  transition: transform 400ms ease-in-out;
  padding: 20px 40px;

  
}
/* nav.css - Global Fix */
/* Parent container for nav */
div:has(> .nav-toggle) {
  position: relative;
  z-index: 1000; /* Global stacking order */
}

/* Hamburger menu trigger */


nav ul {
  margin-top: 2rem;
  list-style: none;

}

nav li {
  margin-bottom: 1em;
}

nav a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

nav a:hover {
  color: #000;
}

.nav-toggle:checked ~ nav {
  transform: scale(1,1);
}

.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
}

/* Special styling for the last link that looks like a button */
.nav__link--special {
  color: azure;
  background: #0056b3;
  text-transform: uppercase;
  font-size: 17px;
  padding: 20px 40px;
  border-radius: 10px;

  display: inline-block;
  text-align: center;
  margin: 0.5rem auto; /* Center horizontally */
}

@media screen and (max-width: 800px) {
  .nav__link--special {
    font-size: 14px !important;
    padding: 15px 25px !important;
    margin: 0.5rem 1rem !important; /* Add horizontal margin */
    width: calc(90% - 2rem); /* Full width minus margins */
  }
 
}


  

@media screen and (min-width: 800px) {
  .nav-toggle-label {
      display: none;
  }

  header {
      display: grid;
      max-height: fit-content;
  }

  .logo {
      grid-column: 1 / 3;
  }

  nav { 
      all: unset;
      grid-column: 3 / 4;
      margin-top: 30px;
  }

  nav ul {
      width: 100%;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      padding-right: 2rem;
  }

  nav li {
      margin-left: 3em;
      margin-bottom: 0;
  }

  nav a {
      opacity: 1;
      position: relative;
  }

  /* Apply hover effect to all nav links except the last one */
  nav a:not(.nav__link--special)::before {
      content: '';
      display: block;
      height: 5px;
      background: rgb(225, 150, 37);
      position: absolute;
      top: -.75em;
      left: 0;
      right: 0;
      transform: scale(0, 1);
      transition: transform ease-in-out 250ms;
  }

  nav a:not(.nav__link--special):hover::before {
      transform: scale(1, 1);
  }

  i {
      grid-column: 4/4;
  }

  .nav__link--special:hover {
      background: #003d7a; /* Darker shade for hover effect */
      transition: background-color 250ms ease-in-out;

  }
  
}